package com.qfjy.homework.huomengting.builder;

/**
 * @ClassName Director
 * @Description TODO 指挥者（Director:指挥装配人员组装电脑
 * @Author GloriaHuo
 * @Date 2022/3/20
 */
public class Director {


    public Builder builder;

    public Director(Builder builder){
        this.builder=builder;
    }
    //产品构建与组装方法
    public Computer Construct(){
        builder.buildCPU();
        builder.buildStorage();
        builder.buildDisplayCard();
        builder.buildMainBoard();
        builder.BuildHardDisk();
        builder.buildGraphics();
        return builder.getComputer();

    }





}
